package org.itboys.mobile.service.mongo.mobile;

import org.itboys.mobile.entity.mongo.ShopGift;
import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created on 2017/10/30.
 * @author 朱坤涛
 */
@Service
public class ShopGiftService extends BaseService<ShopGift, Long>{
    @Resource(name="adminDS")
    private MongoDataSource dictDataSource;

    protected MongoDataSource getMongoDataSource() {
        return dictDataSource;
    }

    protected Class<ShopGift> getEntityClass() {
        return ShopGift.class;
    }
}
